package org.wuyichun;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.wuyichun.base.interceptors.LoginInterceptor;

@SpringBootApplication
@MapperScan("org.wuyichun.*.mapper")
public class EduServerApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(EduServerApplication.class, args);
    }
//    @Autowired
//    private LoginInterceptor loginInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(loginInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/login/*");
//    }
}
